﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
    Inherits="System.Web.Mvc.ViewPage<IEnumerable<FarmerStore.Models.Product>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    农夫商城
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <div id="popular">
        <div id="promotion">
            <%--<img src="../../Content/Images/home-showcase.png" alt="欢迎订购" />--%>
            <% Html.RenderAction("MainAdverts", "Home"); %> 
        </div>
         <% Html.RenderAction("HotDeals", "Home"); %>
        <h3><em>特别推荐</em> 以下产品</h3>

        <ul id="product-list">
            <% foreach (var product in Model)
               { %>
            <li>
                <a href="<%: Url.Action("Details", "Store", new { id = product.Id }) %>">
                <img alt="<%: product.Title %>" src="<%: product.ArtUrl%>" />
                <span><%: product.Title %></span>
                </a>
            </li>
            <% } %>
        </ul>
   </div>

   <% Html.RenderAction("Advert", "Home"); %>
<%--   <% Html.RenderAction("MainAdverts", "Home"); %>--%>
</asp:Content>
